<?php

/* 设置首页 */
Route::get('comset/', [
    'as'   => 'comset.index',
    'uses' => 'ComsetController@index',
]);
Route::resource('comset', 'ComsetController'); 


/* 模板 */
Route::get('template/', [
    'as'   => 'backend.template.index',
    'uses' => 'TemplateController@index',
]);
Route::post('template/getTemplate', [
    'as'   => 'backend.template.getTemplate',
    'uses' => 'TemplateController@getTemplate',
]);
Route::resource('template', 'TemplateController');

/* 部门 */
Route::get('department/', [
    'as'   => 'backend.department.index',
    'uses' => 'DepartmentController@index',
]);
Route::get('department/departmentlist', [
    'as'   => 'backend.department.departmentlist',
    'uses' => 'DepartmentController@departmentlist',
]);
Route::get("department/getmember/{id}/", [
    'as'   => 'backend.department.getmember',
    'uses' => 'DepartmentController@getMember',
]);
Route::resource('department' , 'DepartmentController');

/* 角色 */
Route::get('role/', [
    'as'   => 'backend.role.index',
    'uses' => 'RoleController@index',
]);
Route::get('role/roleList', [
    'as'   => 'backend.role.roleList',
    'uses' => 'RoleController@roleList',
]);
Route::get('role/getrolestaff', [
    'as'   => 'backend.role.getrolestaff',
    'uses' => 'RoleController@getRoleStaff',
]);

Route::post('role/editstaff', [
    'as'   => 'backend.role.editstaff',
    'uses' => 'RoleController@editStaff',
]);




/* 角色组 */
Route::resource('role' , 'RoleController');


/* 效绩 */
Route::post('performance/addartio',[
	'as' => 'backend.performance.addartio',
	'uses' => 'PerformanceController@addArtio',
]);


Route::resource('performance' , 'PerformanceController');

//马甲登录
Route::get('changerole', [
    'as'   => 'backend.role.changerole',
    'uses' => 'RoleController@changerole',
]);

// Route::get('role/changerole', [
//     'as'   => 'backend.role.changerole',
//     'uses' => 'RoleController@changerole',
// ]);

